<%@ page language="java" pageEncoding="UTF-8"%>
<%@ taglib uri="/struts-tags" prefix="s"%>
<%@ taglib uri="http://jsptags.com/tags/navigation/pager" prefix="p"%>
<%
	String path = request.getContextPath();
	String root = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path;
	request.setAttribute("root", root);
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
	<meta http-equiv="X-UA-Compatible" content="IE=8" />

	<title>MochaUI - A Web Applications User Interface Library</title>
	<meta name="description" content="A web applications user interface library built on the Mootools javascript framework" />
	<meta http-equiv="X-UA-Compatible" content="IE=edge" />

	<link rel="stylesheet" type="text/css" href="${root}/static/themes/default/css/Content.css" />
	<link rel="stylesheet" type="text/css" href="${root}/static/themes/default/css/Core.css" />
	<link rel="stylesheet" type="text/css" href="${root}/static/themes/default/css/Layout.css" />
	<link rel="stylesheet" type="text/css" href="${root}/static/themes/default/css/Dock.css" />
	<link rel="stylesheet" type="text/css" href="${root}/static/themes/default/css/Tabs.css" />
	<link rel="stylesheet" type="text/css" href="${root}/static/themes/default/css/Window.css" />

    <script type="text/javascript" src="${root}/static/scripts/mootools-1.2.4-core-yc.js"></script>
    <script type="text/javascript" src="${root}/static/scripts/mootools-1.2.4-more-yc.js"></script>
    <script type="text/javascript" src="${root}/static/scripts/mocha.js"></script>    
	<script type="text/javascript" src="${root}/static/scripts/demo-virtual-desktop-init.js"></script>
	<script type="text/javascript" src="${root}/static/plugins/tree/scripts/tree.js"></script>
	<script type="text/javascript" src="${root}/static/wdate/WdatePicker.js"></script>
<style>
<!--
.t_lable{text-align: right;padding-right: 5px}
table{min-width: 1030px}
table tr{height: 30px}
table tr td{padding-left: 5px}
.required{color: red;font-weight: bold;margin-left: 3px;}
-->
</style>
</head><body>
<s:form id="company" action="company/update.action" method="post" theme="simple">
<table width="100%" border="1">
  <tr>
    <td colspan="8" align="left" style="padding-right: 10px;height: 40px">添加单位</td>
  </tr>
  <tr>
    <td class="t_lable">单位名称</td>
    <td colspan="5"><s:textfield name="company.name" cssClass="input" cssStyle="width: 96%"/><span class="required">*</span></td>
    <td class="t_lable">注册号</td>
    <td><s:textfield cssClass="input" name="company.orgCode" size="27"/><span class="required">*</span></td>
  </tr>
  <tr>
     <td class="t_lable">法人</td>
    <td><s:textfield cssClass="input" name="company.legalRepresentative" size="27"/></td>
    <td class="t_lable">公司电话</td>
    <td><s:textfield cssClass="input" size="27" name="company.tel"/></td>
    <td class="t_lable">年检情况</td>
    <td><s:textfield cssClass="input" size="27" name="company.annual"/></td>
    <td class="t_lable">公司规模</td>
    <td><s:textfield cssClass="input" size="27" name="company.scale"/></td>
  </tr>
  <tr>
    <td class="t_lable">公司成立时间</td>
    <td><s:textfield cssClass="input" name="company.establishmentDate" size="27"/></td>
    <td class="t_lable">注册地址</td>
    <td><s:textfield cssClass="input" name="company.registeredAddress" size="27"/></td>
    <td class="t_lable">办公地址</td>
    <td><s:textfield cssClass="input" name="company.officeAddress" size="27"/></td>
     <td class="t_lable">注册资金</td>
    <td><s:textfield cssClass="input" name="company.registeredCapital" size="27"/></td>
  </tr>
  <tr>
    <td class="t_lable">经营范围</td>
    <td><s:textfield cssClass="input" size="27" name="company.businessScope"/></td>
    <td class="t_lable">客户地址</td>
    <td><s:textfield cssClass="input" size="27"/></td>
    <td class="t_lable">经营范围</td>
    <td><s:textfield cssClass="input" size="27" name="company.businessScope"/></td>
    <td class="t_lable">发证日期</td>
    <td><s:textfield cssClass="input" size="27" name="company.licenceDate" readonly="readonly" onclick="WdatePicker();"/></td>
  </tr>
  <tr>
    <td class="t_lable">有效期开始时间</td>
    <td><s:textfield cssClass="input" size="27" name="company.validStartTime" readonly="readonly" onclick="WdatePicker();"/></td>
    <td class="t_lable">有效期终止时间</td>
    <td><s:textfield cssClass="input" size="27" name="company.validEndTime" readonly="readonly" onclick="WdatePicker();"/></td>
    <td class="t_lable">营业期限开始日期</td>
    <td><s:textfield cssClass="input" size="27" name="company.businessStartDate" readonly="readonly" onclick="WdatePicker();"/></td>
    <td class="t_lable">营业期限终止日期</td>
    <td><s:textfield cssClass="input" size="27" name="company.businessEndDate" readonly="readonly" onclick="WdatePicker();"/></td>
  </tr>
  <tr>
    <td class="t_lable" valign="top">客户简介</td>
    <td colspan="7"><s:textarea cssStyle="width: 99%;height: 50px" name="company.summary"></s:textarea>
    <s:hidden name="company.id"/>
    </td>
  </tr>
  <tr>
      <td colspan="8" align="right" style="padding-right: 10px;height: 50px"><input type="reset" class="button" value="  清 空  "/>
        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
        <s:submit cssClass="button" value="  保 存  "/></td>
    </tr>
</table>
</s:form>
</body></html>